package com.jiutong.orderpay.manage.dao.user.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.springframework.stereotype.Repository;
import com.jiutong.common.tools.CommonUtils;
import com.jiutong.orderpay.manage.dao.common.BaseDao;
import com.jiutong.orderpay.manage.dao.user.ManageBankcardCommonDao;
/** 
 * @description :  
 * @Function:  
 * @author lizhi  
 * @createTime : 2016年4月13日 下午4:40:40
 */
@Repository("bankcardCommonDao")
public class ManageBankcardCommonDaoImpl extends BaseDao implements ManageBankcardCommonDao {


	@SuppressWarnings("unchecked")
	@Override
	public List<Integer> getGuidListByBankcardNoOrName(String name,int bankcardNo, int source) {
		Map<String,Object> params = new HashMap<String,Object>(); 
		if(CommonUtils.isNotEmpty(name)){
			params.put("name", name);
		}
		if(bankcardNo > 0){
			params.put("bankcardNo", bankcardNo);
		}
		params.put("source", source);
		return (List<Integer>)getTemplate().selectList("BankcardCommon.getGuidListByBankcardNoOrName", params);
	}

}
